<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


function smarty_function_concat($params, &$smarty)
{

	$assign = "";
	$data = "";

	foreach( $params as $_key => $_parameter ) {


		if( $_key == "var" ) {

			$assign = $_parameter;

		} else {

			$data .= $_parameter;

		}

	}

	if( $assign != "" ) {
		$smarty->assign($assign, $data); }

}

/* vim: set expandtab: */

?>
